package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.InventoryMapper;
import com.ruoyi.system.domain.Inventory;
import com.ruoyi.system.service.IInventoryService;

/**
 * 采购申请表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-16
 */
@Service
public class InventoryServiceImpl implements IInventoryService 
{
    @Autowired
    private InventoryMapper inventoryMapper;

    /**
     * 查询采购申请表
     * 
     * @param id 采购申请表主键
     * @return 采购申请表
     */
    @Override
    public Inventory selectInventoryById(Long id)
    {
        return inventoryMapper.selectInventoryById(id);
    }

    /**
     * 查询采购申请表列表
     * 
     * @param inventory 采购申请表
     * @return 采购申请表
     */
    @Override
    public List<Inventory> selectInventoryList(Inventory inventory)
    {
        return inventoryMapper.selectInventoryList(inventory);
    }

    /**
     * 新增采购申请表
     * 
     * @param inventory 采购申请表
     * @return 结果
     */
    @Override
    public int insertInventory(Inventory inventory)
    {
        return inventoryMapper.insertInventory(inventory);
    }

    /**
     * 修改采购申请表
     * 
     * @param inventory 采购申请表
     * @return 结果
     */
    @Override
    public int updateInventory(Inventory inventory)
    {
        return inventoryMapper.updateInventory(inventory);
    }

    /**
     * 批量删除采购申请表
     * 
     * @param ids 需要删除的采购申请表主键
     * @return 结果
     */
    @Override
    public int deleteInventoryByIds(Long[] ids)
    {
        return inventoryMapper.deleteInventoryByIds(ids);
    }

    /**
     * 删除采购申请表信息
     * 
     * @param id 采购申请表主键
     * @return 结果
     */
    @Override
    public int deleteInventoryById(Long id)
    {
        return inventoryMapper.deleteInventoryById(id);
    }
}
